import express from 'express';

import {
  usersSignin,
  usersSignup
} from '../controller/usersPannel.js';

import {
  sendResetMail,
  changePassword
} from '../controller/sendmail.js';

import {
  fileUpload
} from '../controller/fileUpload.js';

var router = express.Router();

router.get('/', async (req, res, next) => {
  res.render('index', {
    title: 'Express'
  });
});

router.post('/signup', usersSignup);

router.post('/signin', usersSignin);

router.post('/resetpass', sendResetMail);

router.post('/chanpass', changePassword);

router.post('/fileupload', fileUpload);

export default router;